import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_website/Home/parts/Header.dart';
import 'package:flutter_website/Home/parts/about.dart';
import 'package:flutter_website/Home/parts/banner.dart';
import 'package:flutter_website/Home/parts/dog.dart';
import 'package:flutter_website/Home/parts/drawer.dart';
import 'package:flutter_website/Home/parts/lol.dart';
import 'package:flutter_website/Home/parts/superCode.dart';
/**
 * Create by laoge
 * on 2021/5/28 0028
 */

class Home extends StatefulWidget {
  @override
  _Home createState() {
    return _Home();
  }
}

class _Home extends State<Home> {
  @override
  Widget build(BuildContext context) {
    Size size = MediaQuery.of(context).size;
    double scale = size.width / 1920;
    return Scaffold(
      appBar: AppBar(
        automaticallyImplyLeading: false,
        backgroundColor: Colors.black,
        title: header(context),
      ),
      drawer: drawer(context, size),
      body: SingleChildScrollView(
        child: Column(
          children: [
            banner(size, scale),
            superCode(size, scale, context),
            SizedBox(
              height: 20 * scale,
            ),
            dog(context, scale, size),
            SizedBox(
              height: 20 * scale,
            ),
            lol(scale, context),
            SizedBox(
              height: 20 * scale,
            ),
            about(scale, context, size)
          ],
        ),
      ),
    );
  }


}
